]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
[ShellGenericContainer] Add method to get number of skipped children
authorColin Walters <walters@verbum.org>
Mon, 22 Feb 2010 21:22:38 +0000 (16:22 -0500)
committerColin Walters <walters@verbum.org>
Thu, 4 Mar 2010 19:08:13 +0000 (14:08 -0500)
This will be used in search results.

https://bugzilla.gnome.org/show_bug.cgi?id=610740

src/shell-generic-container.c
src/shell-generic-container.h

index 90465ab65f7950915806450b1e9445eb0461c09f..9eacb13257f3351416beb7cd3371567207994de5 100644 (file)
@@ -234,6 +234,18 @@ shell_generic_container_pick (ClutterActor        *actor,
   g_list_free (children);
 }
 
+/**
+ * shell_generic_container_get_n_skip_paint:
+ * @container:  A #ShellGenericContainer
+ *
+ * Returns: Number of children which will not be painted.
+ */
+guint
+shell_generic_container_get_n_skip_paint (ShellGenericContainer  *self)
+{
+  return g_hash_table_size (self->priv->skip_paint);
+}
+
 /**
  * shell_generic_container_set_skip_paint:
  * @container: A #ShellGenericContainer
index 009df55169b1efd1d9435c245c8c94a262175fc0..50f65706331929d6dd1856ad2544082cad57cca0 100644 (file)
@@ -42,6 +42,8 @@ struct _ShellGenericContainerClass
 
 GType shell_generic_container_get_type (void) G_GNUC_CONST;
 
+guint shell_generic_container_get_n_skip_paint (ShellGenericContainer  *container);
+
 void shell_generic_container_set_skip_paint (ShellGenericContainer  *container,
                                              ClutterActor           *actor,
                                              gboolean                skip);